package com.cloudm.technician.ui.modules.common.register

import com.cloudm.technician.data.db.DbHelper
import com.cloudm.technician.data.network.CommonApi
import com.cloudm.technician.data.preferences.PreferencesHelper
import com.cloudm.technician.di.PerFragment
import dagger.Module
import dagger.Provides

/**
 * 作者: wesley
 * 时间: 2017/12/14
 * 描述: 提供实例
 */
@Module
class RegisterPresenterModule(private val view: RegisterContract.View) {

    @PerFragment
    @Provides
    fun provideRegisterPresenter(commonApi: CommonApi, preferencesHelper: PreferencesHelper,
                                 dbHelper: DbHelper) = RegisterPresenter(view, commonApi,
            preferencesHelper, dbHelper)
}